'''Notifies to stdout.

It uses the following format::

    {username}: {message}


'''

from statusnotifications.notifier import Notifier

class StdoutNotifier(Notifier):
    '''Output to stdout implementation.'''

    name = 'stdout'

    def notify(self, status):
        '''Notify of the status.'''

        Notifier.notify(self, status)

        print '%s: %s' % (status.user.user_name, status.message)
